package com.styles.codingstylemybatisgenerator.service.impl;

import com.styles.codingstylemybatisgenerator.dao.AccountMapper;
import com.styles.codingstylemybatisgenerator.entity.Account;
import com.styles.codingstylemybatisgenerator.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author chenjian
 * @Package
 * @Description:
 * @date 2018/12/20 23:07
 */
@Service
@Transactional
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Account findOne(Long id) {

        Account account = accountMapper.selectByPrimaryKey(id);
        return account;
    }
}
